<?php
declare (strict_types=1);

namespace app\backend\controller\v2;

use app\common\model\DatumCate;

class TextBook extends BaseController
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        $model = new DatumCate();
        $data = $model->field('id,title,grade_id')->select();
        return sucessMsg(200, '获取成功', $data);
    }
}